package com.briup.es.domain.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@TableName(value ="es_user")
@Data
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    @JsonIgnore
    private String password;
    private String phone;
    private String avatar;
    private String gender;
    private Integer status;
    private LocalDate birthday;
    private LocalDateTime registerTime;
    private Integer roleId;
    private Boolean isVip;
    private LocalDateTime vipExpirationTime;
    private Integer defaultAddressId;
}